<template>
    <div>
        <Modal v-model="modal.detail" title="详情" width="1020">
            <div class="detail-info">
                <Row>
	<i-col span="12"><span class="detail-title">充值编号：</span><span v-text="form.id"></span></i-col><i-col span="12"><span class="detail-title">交易编号：</span><span v-text="form.transactionNo"></span></i-col>

	<i-col span="12"><span class="detail-title">用户编号：</span><span v-text="form.userId"></span></i-col><i-col span="12"><span class="detail-title">充值金额（元）：</span><span v-text="form.amount"></span></i-col>

	<i-col span="12"><span class="detail-title">充值类型：</span><span v-text="form.rechargeType"></span></i-col><i-col span="12"><span class="detail-title">是否成功：</span><span v-text="form.isSuccess"></span></i-col>

	<i-col span="12"><span class="detail-title">商户订单号：</span><span v-text="form.outTradeNo"></span></i-col><i-col span="12"><span class="detail-title">支付系统订单号：</span><span v-text="form.tradeNo"></span></i-col>

	<i-col span="12"><span class="detail-title">版本号：</span><span v-text="form.version"></span></i-col><i-col span="12"><span class="detail-title">创建时间：</span><span v-text="form.createTime"></span></i-col>

	<i-col span="12"><span class="detail-title">更新时间：</span><span v-text="form.updateTime"></span></i-col><i-col span="12"><span class="detail-title">是否激活：</span><span v-text="form.isActive"></span></i-col>
</Row>

            </div>
        </Modal>
    </div>
</template>

<script>
	import * as utils from '@/api/utils-v2'
	import * as ResponseStatus from '@/api/response-status'
    export default {
        name: 'FundsRechargeDetail',
        data() {
            return {
                modal: {
                    detail: false
                },
				dataDictCodes: ['IS_ACTIVE','RECHARGE_SUCCESS_STATUS'],
				dataDictItems: {},
                form: {
                    id: null,
transactionNo: null,
userId: null,
amount: null,
rechargeType: null,
isSuccess: null,
outTradeNo: null,
tradeNo: null,
version: null,
createTime: null,
updateTime: null,
isActive: null,

                }
            }
        },
        computed: {},
        mounted() {},
        methods: {
			getDictItemsDisplayValue() {
				utils.getDataDict(this.dataDictCodes).then(response => {
				if (response) {
					this.dataDictItems = response
					
					utils.getDetailDictItemDisplayValue(this, 'IS_ACTIVE', 'isActive')
					utils.getDetailDictItemDisplayValue(this, 'RECHARGE_SUCCESS_STATUS', 'isSuccess')
				}
				}).catch(error => {
				console.log(error)
				})
			}
		}
    }
</script>

<style>

</style>
